package com.tangyuan.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: user_concern
 * @Author: jeecg-boot
 * @Date: 2024-03-19
 * @Version: V1.0
 */
@Data
@TableName("user_concern")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "user_concern对象", description = "user_concern")
public class UserConcern implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 关注id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "关注id")
    private Long id;
    /**
     * 关注人id
     */
    @ApiModelProperty(value = "关注人id")
    private Long userId;
    /**
     * 关注人name
     */
    @ApiModelProperty(value = "关注人name")
    private String userName;
    /**
     * 被关注人id
     */
    @ApiModelProperty(value = "被关注人id")
    private Long concernUserId;
    /**
     * 被关注人昵称
     */
    @ApiModelProperty(value = "被关注人昵称")
    private String concernUserName;
    /**
     * 被关注人头像
     */
    @ApiModelProperty(value = "被关注人头像")
    private String concernUserImage;
    /**
     * 用户备注名
     */
    @ApiModelProperty(value = "用户备注名")
    private String markName;
    /**
     * 特殊关注
     */
    @ApiModelProperty(value = "特殊关注")
    private Integer specialConcern;
    /**
     * 对应 ConcernTypeEnum 类
     */
    @ApiModelProperty(value = "对应 ConcernTypeEnum 类")
    private Integer type;
    /**
     * 对应 ConcernTypeEnum 类
     */
    @ApiModelProperty(value = "对应 ConcernTypeEnum 类")
    private Integer concernId;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更改时间")
    private Date updateTime;
    /**
     * 1删
     */
    @ApiModelProperty(value = "1删")
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String headImage;


}
